package com.muyu.danmo.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;


/**
 * 广告对象 danmo_announcement
 *
 * @author yangle
 * @date 2024-09-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class DanmoAnnouncement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 内容 */
    @Excel(name = "内容")
    private String name;

    /** 状态（1正常 2已删除） */
    @Excel(name = "状态", readConverterExp = "1=正常,2=已删除")
    private Long states;

    /** 公告类型（1 公告 2通知） */
    @Excel(name = "公告类型", readConverterExp = "1=,公=告,2=通知")
    private Long announcementType;

    private Integer pageNum = 1;
    private Integer pageSize = 10;

//
//    @Override
//    public String toString() {
//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
//            .append("id", getId())
//            .append("name", getName())
//            .append("states", getStates())
//            .append("announcementType", getAnnouncementType())
//            .append("createBy", getCreateBy())
//            .append("createTime", getCreateTime())
//            .append("updateBy", getUpdateBy())
//            .append("updateTime", getUpdateTime())
//            .append("remark", getRemark())
//            .toString();
//    }
}
